package com.epk.pic.mapper;

import com.epk.pic.po.PicContents;
import com.epk.pic.po.PicInfoMain;
import com.epk.pic.vo.PicQueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

@Mapper
public interface PicMapper {
    List<PicInfoMain> selectByQueryVo(PicQueryVo vo);

    List<PicContents> selectPicByQueryVo(PicQueryVo vo);

    PicInfoMain selectPicMainById(@Param("id") Long id);

    List<PicContents> selectContentsByMaimId(@Param("id") Long id);

    List<PicContents> selectContentsByMaimIdAndType(@Param("id") Long id, @Param("type") String type);

    PicContents selectContentsById(@Param("id") Long id);

    PicContents selectContentsByMd5(@Param("md5") String md5);

    int addClick(@Param("id") Long id);

    Long nextVal(@Param("seqName") String seqName);

    int deleteMainById(@Param("id") Long id);

    int savePicInfoMain(PicInfoMain po);

    int savePicContents(PicContents po);

}
